package Huihu.src.刷题;

import java.text.DecimalFormat;
import java.util.Scanner;

public class 三角函数 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int x=scanner.nextInt();
        double X = Math.toRadians(x);//把数转化为角度
        double [] array=new double[6];
        double sum=0;
            array[0]=Math.sin(X);
            array[1]=Math.cos(X);
            array[2]=Math.tan(X);
            array[3]=1/array[2];
            array[4]=1/array[1];
            array[5]=1/array[0];
        for (int i = 0; i < 6; i++) {
            sum+=array[i];
        }
        DecimalFormat df=new DecimalFormat("0.00");
        System.out.println(df.format(sum));
    }
}
